#include "gpio.h"

void debug_gpioinit(void)
{
    /*pin remap clock enable*/
    rcu_periph_clock_enable(RCU_AF);
    /*close JTAG,enable SWD*/
    gpio_pin_remap_config(GPIO_SWJ_SWDPENABLE_REMAP,ENABLE);
}

void blueled_gpioinit(void)
{
    /*enable clock*/
    rcu_periph_clock_enable(BLUELED_RCU);
    /*init gpio*/
    gpio_init(BLUELED_PORT, GPIO_MODE_OUT_PP, GPIO_OSPEED_50MHZ, BLUELED_PIN);
    /*reset gpio*/
    gpio_bit_reset(BLUELED_PORT,BLUELED_PIN);
}

